package com.dabai.iot.core.model;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;
import java.util.Map;

/**
 * 时序数据库设备消息日志实体类
 *
 * @author kev1n
 */
@Data
@Schema(description = "TsDeviceLog对象")
public class TsDevicePropertyLog implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 产品Key
     */
    @Schema(description = "产品Key")
    private String productKey;

    /**
     * 设备序列号
     */
    @Schema(description = "设备序列号")
    private String deviceSn;


    /**
     * 设备序列号
     */
    @Schema(description = "设备序列号")
    private String blockIdentifier;

    /**
     * 属性内容
     */
    @Schema(description = "属性内容")
    private Map<String, Object> valuesMap;

    /**
     * 消息时间
     */
//    @Schema(description = "消息时间")
    private Date ts;

}
